<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>部门管理</title>
<link rel="stylesheet" type="text/css" href="../../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../css/colorReset.css" />


<style type="text/css">
.popup_con {
	border: 1px solid #95B8E7;
	width: 380px;
	margin: 10px auto 0 auto;
}

.popup_con ul {
	margin: 10px auto;
	width: 380px;
	overflow: hidden;
}

.popup_con ul li {
	width: 340px;
	display: block;
	float: left;
	height: 25px;
	overflow: hidden;
	padding: 5px 0;
}

.popup_con ul li.li_col {
	width: 380px;
	height: auto;
}

.popup_con .text {
	width: 260px;
}
</style>

</head>

<body>

	<div class="main">
		<!-- 检索区域开始 -->
		<div class="sel_div">
			<table cellpadding="0" cellspacing="0" class="sel_con">
				<tr>
					<th colspan="5">数据检索</th>
				</tr>
				<tr>
					<td><label>所属公司：</label> <input id="JScompany"
						name="fieldName" class="text" /></td>

					<td><label>部门名称：</label> <input class="text" type="text"
						name="name" id="JSdepartment" /></td>
					<td>&nbsp;</td>
					<!--  <td>&nbsp;
        
        </td> -->
					<td>
						<button class="query_btn easyui-linkbutton" iconCls="icon-search"
							onclick="onSearch()">查询</button>
					</td>

					<td>
						<button class="query_btn easyui-linkbutton" iconCls="icon-reset"
							onclick="onReset()">重置</button>
					</td>
				</tr>
			</table>
		</div>

		<!-- 检索区域结束 -->
		<div class="data_con">
			<div id="toolbox" style="padding: 5px; height: 25px">
				<div style="margin-bottom: 5px; float: left">
					<a href="javascript:void(0)" onclick="onAdd()"
						class="easyui-linkbutton" id="toolbar_add" iconCls="icon-add"
						plain="true">新增</a> <a href="javascript:void(0)"
						onclick="onUpdate()" class="easyui-linkbutton" id="toolbar_modify"
						iconCls="icon-edit" plain="true">修改</a> <a
						href="javascript:void(0)" onclick="onDel()"
						class="easyui-linkbutton" id="toolbar_delete"
						iconCls="icon-remove" plain="true">刪除</a>
				</div>

			</div>
			<table id="datagrid" style="height: 345px"
				data-options="fitColumns:true,toolbar:'#toolbox'">
			</table>


		</div>



		<div id="winEdit" class="easyui-window" title="部门管理-新增"
			style="width: 430px; height: auto; top: 20px"
			data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
			<form id="addForm" method="post">
				<div class="popup_con">

					<ul>
						<li class="li_col"><label for="companyName" class="label">所属公司：</label>
							<div class="input_con">
								<input id="comboxCompanyName" name="companyName"
									data-options="required:true,valueField:'id',textField:'text'"
									class="text" />
							</div></li>
						<li class="li_col"><label for="departmentName" class="label">部门名称：</label>
							<div class="input_con">
								<input class="easyui-validatebox text" type="text"
									name="orgName" id="comboxDepartment"
									data-options="required:true,validType:['unnormal','length[0,50]']"
									missingMessage="部门名称不能为空!" />
							</div></li>

					</ul>
				</div>
			</form>
			<div id="buttons" class="button_con">
				<a href="javascript:void(0)" onclick="onSave()"
					class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
					plain="true">保存</a> <a href="javascript:void(0)"
					onclick="onCancleEdit()" class="easyui-linkbutton"
					id="instance_cancel" iconCls="icon-cancel" plain="true">取消</a>
			</div>
		</div>


		<script type="text/javascript" src="/webjars/json3/3.3.2/json3.min.js"></script>
		<script type="text/javascript"
			src="../../js/jquery-easyui-1.4.3/jquery.min.js"></script>
		<script type="text/javascript"
			src="../../js/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
		<script type="text/javascript"
			src="../../js/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/cook/public.js"></script>
		<script type="text/javascript" src="../../js/cook/constants.js"></script>
		<script type="text/javascript" src="../../js/cook/FormValidate.js"></script>
		<script type="text/javascript" src="../../js/ajaxfileupload.js"></script>
		<script type="text/javascript"
			src="../../js/cook/LedgerManagement/DepartmentsManage.js"></script>
</body>
</html>



